//
//  XHomeAdClvCell.m
//  Bees
//
//  Created by Xiaohan on 2018/12/17.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import "XHomeAdClvCell.h"

@implementation XHomeAdClvCell
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        [self setupUI];
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super initWithCoder:aDecoder]) {
        self.backgroundColor = [UIColor clearColor];
        [self setupUI];
    }
    return self;
}

- (void)setupUI{
    UIImageView *imgView = [[UIImageView alloc]init];
    imgView.contentMode = UIViewContentModeScaleAspectFit;
//    ViewRadius(imgView, AdaptedWidth(7.0f));
//    [imgView setLayerShadow:kShadowColor offset:CGSizeMake(0, 0) radius:6];
    [self addSubview:imgView];
    _imgView = imgView;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _imgView.frame = self.bounds;
}
@end
